<h1>Editing <%= @customer_record.fname %></h1>

<% form_tag :action => "update", :id => @customer_record.id do %>
  <%= flash[:notice] %>
  <p>
    <%= "fname" %>
    <%= text_field :customer_record, :fname %>
  </p>
  <p>
    <%= "mname" %>
    <%= text_field :customer_record, :mname %>
  </p>
  <p>
    <%= "lname" %>
    <%= text_field :customer_record, :lname %>
  </p>
  <p>
    <%= "street" %>
    <%= text_field :customer_record, :street %>
  </p>
  <p>
    <%= "zip" %>
    <%= text_field :customer_record, :zip %>
  </p>
<p>
    <%= "state" %>
    <%= text_field :customer_record, :state %>
  </p>
  <p>
    <%= "mobile" %>
    <%= text_field :customer_record, :mobile %>
  </p>
  <p>
    <%= "work" %>
    <%= text_field :customer_record, :work %>
  </p>
  <p>
    <%= "email" %>
    <%= text_field :customer_record, :email %>
  </p>
  <p>
    <%= "notes" %>
    <%= text_field :customer_record, :notes %>
  </p>
  <p>
    <%= "contact_preference" %>
    <%= text_field :customer_record, :contact_preference %>
  </p>
  <p>
    <%= "customer_state_id" %>
    <%= text_field :customer_record, :customer_state_id %>
  </p>
  <p>
    <%= submit_tag "Update" %>
  </p>
<% end %>

<%= link_to 'Show', :action => "show", :id => @customer_record.id %> |
<%= link_to 'Back', :action => "index" %>
